.class final Lcom/ninesky/browser/aw;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/do;

.field private final synthetic b:Lcom/ninesky/widget/l;

.field private final synthetic c:I


# direct methods
.method constructor <init>(Lcom/ninesky/browser/do;Lcom/ninesky/widget/l;I)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iput-object p2, p0, Lcom/ninesky/browser/aw;->b:Lcom/ninesky/widget/l;

    iput p3, p0, Lcom/ninesky/browser/aw;->c:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 7

    iget-object v0, p0, Lcom/ninesky/browser/aw;->b:Lcom/ninesky/widget/l;

    invoke-virtual {v0}, Lcom/ninesky/widget/l;->c()V

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-virtual {v0}, Lcom/ninesky/browser/BookmarksActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v1, v1, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget v2, p0, Lcom/ninesky/browser/aw;->c:I

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/BookmarksActivity;->a(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/ninesky/browser/provider/e;->e(Landroid/content/ContentResolver;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v6, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    sget-object v1, Lcom/ninesky/browser/provider/e;->a:Landroid/net/Uri;

    sget-object v2, Lcom/ninesky/browser/provider/e;->b:[Ljava/lang/String;

    const-string v3, "visits != 0"

    const/4 v4, 0x0

    const-string v5, "visits DESC"

    invoke-virtual/range {v0 .. v5}, Lcom/ninesky/browser/BookmarksActivity;->managedQuery(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    invoke-static {v6, v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Lcom/ninesky/browser/BookmarksActivity;Landroid/database/Cursor;)V

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget-object v1, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v1, v1, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v1}, Lcom/ninesky/browser/BookmarksActivity;->d(Lcom/ninesky/browser/BookmarksActivity;)Landroid/database/Cursor;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BookmarksActivity;->a(Landroid/database/Cursor;)V

    :goto_0
    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "MostVisited"

    const-string v2, "Remove"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget v1, p0, Lcom/ninesky/browser/aw;->c:I

    invoke-static {v0, v1}, Lcom/ninesky/browser/BookmarksActivity;->d(Lcom/ninesky/browser/BookmarksActivity;I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/aw;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "Bookmarks"

    const-string v2, "Remove"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method
